package com.zzw.hj72;

import java.util.Scanner;

/**
 * @Project: hw_java
 * @Description: 百钱买百鸡问题
 * @Author: zzw
 */

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        for (int i = 0; i < 100 / 5; i++) {
            for (int j = 0; j < 100 / 3; j++) {
                int k = 100 - i - j;
                if ((i * 5 + j * 3 + k / 3 == 100) && (k % 3 == 0)) {
                    System.out.println(i + " " + j + " " + k);
                }
            }
        }
    }
}
